<?php
/* SVN FILE: $Id$ */
/**
 *  The sidebar template file.
 *
 *  @package        CPConstruction
 *  @subpackage     Content
 *  @copyright      CP Construction (Gwent) Ltd <http://www.cpconstruction.co.uk/> 2012
 *  @author         Richard Perry <http: //www.perry-online.me.uk/>
 *  @since          Release 0.1.0
 *  @version        $Rev$
 *  @modifiedby     $LastChangedBy$
 *  @lastmodified   $Date$
 *
 *  @todo           ToDo List
 *                  -
 */
?>
        <?php if (is_page()) : ?>
            <?php if ( is_active_sidebar('page_widget_area') ) : ?>
            <div id="primary" class="widget-area">
                <ul class="xoxo">
                    <?php dynamic_sidebar('page_widget_area'); ?>
                </ul>
            </div><!-- #primary .widget-area -->
            <?php endif; ?>         
        <?php else : ?>
            <?php if ( is_active_sidebar('post_widget_area') ) : ?>
            <div id="primary" class="widget-area">
                <ul class="xoxo">
                    <?php dynamic_sidebar('post_widget_area'); ?>
                </ul>
            </div><!-- #primary .widget-area -->
            <?php endif; ?> 
        <?php endif; ?>